import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue'
import Container from '../components/container/src/index.vue'
const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: Container,
    children: [
        {
          path: '/',
          component: Home
        },
        {
          path:'/chooseIcon',
          component:()=>import('../views/chooseIcon/chooseIcon.vue')
        },
        {
            path:'/chooseArea',
            component:()=>import('../views/chooseArea/chooseArea.vue')
        },
        {
            path:'/chooseStreet',
            component:()=>import('../views/chooseStreet/chooseStreet.vue')
        },
        {
            path:'/chooseStreetCascad',
            component:()=>import('../views/chooseStreetCascad/chooseStreetCascad.vue')
        },
        {
            path:'/trend',
            component:()=>import('../views/trend/trend.vue')
        },
        {
            path:'/notification',
            component:()=>import('../views/notification/index.vue')
        },
        {
            path:'/menu',
            component:()=>import('../views/menu/index.vue')
        },
        {
            path:'/progress',
            component:()=>import('../views/progress/index.vue')
        },
        {
            path:'/chooseTime',
            component:()=>import('../views/chooseTime/index.vue')
        },
        {
            path:'/chooseCity',
            component:()=>import('../views/chooseCity/index.vue')
        },
        {
            path:'/form',
            component:()=>import('../views/form/index.vue')
        },
        {
            path:'/modalForm',
            component:()=>import('../views/modalForm/index.vue')
        },
        {
            path: '/table',
            component: () => import('../views/table/index.vue')
        },
        {
            path: '/calendar',
            component: () => import('../views/calendar/index.vue')
        },
    ]
  },

]

const router = createRouter({
  routes,
  history: createWebHistory()
})

export default router
